<script>
export default {
	onLaunch: function() {
		
		uni.login({
			success: res_login => {
				console.log("登录成功")
				console.log(res_login.code);
				uni.getUserInfo({
					success: info => {
						console.log("获取详细信息")
						console.log(info);
					}
				})
			}
		});
		console.log('App Launch1');
		setTimeout(() => {
			
			uni.setTabBarBadge({
				index: 1,
				text: '31',
				
			});
			uni.showTabBarRedDot({
				index: 3
			});
			
		}, 1000);
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
/*每个页面公共css */ 
</style>
